def func01():
    print("func01 开始执行")
    num = 1 /0
    print("func01 结束执行")

def func02():
    print("func02 开始执行")
    func01()
    print("func02 结束执行")

def main():
    try:
        func02()
    except Exception as e:
        print(e)

main()